<?php

namespace App\Http\Controllers\Front;

use App\Http\Controllers\Controller;
use App\Model\Front\Recommend;
use Illuminate\Http\Request;

class RecommendController extends Controller
{
    public static function create($product_id, $user_id)
    {
        if (auth()->check()) {
            Recommend::create([
            'product_id'=> $product_id,
            'user_id' => $user_id
            ]);
        }
    }
}
